package com.lax.advertserver.controller;

import com.lax.advertserver.bean.UserEntity;
import com.lax.advertserver.bean.sys.RoleInfo;
import com.lax.advertserver.service.TestServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class TestController {

    @Autowired
    private TestServiceImpl testService;

    /**
     * 查询单个用户
     *
     * @return
     */
    @GetMapping("getUser")
    public RoleInfo findAllUser() {
        RoleInfo roleInfo = new RoleInfo();
        roleInfo.setId("1");
        return testService.getRoleList(roleInfo);
    }
}
